package chaoyue.starter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "my.custom")
public class MyCustomProperties {
    private Integer data1 = -1;
    private String data2 = "默认的数据";
}
